package com.atguigu.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 应用配置类
 * 对应配置前缀: app
 */
@Data
@Component
@ConfigurationProperties(prefix = "app")
@RefreshScope
public class AppProperties {

    /**
     * 应用名称
     * 对应配置: app.name
     */
    private String name = "默认应用";

    /**
     * 应用版本
     * 对应配置: app.version
     */
    private String version = "1.0.0";

}